/**
 * 代号:隐无为 2017：厚溥
 * 文件名：RunApplication.java
 * 创建人：柯栋
 * 日期：2017年9月21日
 * 修改人：
 * 描述：
 */
package org.kd;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 用途：启动
 */
@SpringBootApplication
@MapperScan(basePackages = "org.kd.dao")
@EnableScheduling
public class IMRunApplication  extends SpringBootServletInitializer{
	@Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(IMRunApplication.class);
    }

	public static void main(String[] args) {
		long StartTime=System.currentTimeMillis();
		SpringApplication.run(IMRunApplication.class, args);
		long EndTime=System.currentTimeMillis();
		long time=EndTime-StartTime;
		System.err.println("hp-IM-启动成功,时间:"+time+"ms");
 	}
}
